package com.yiibai.tutorial.javabasic.variable;

interface Drawable2 {
	void draw();

	static int cube4(int x) {
		return x * x * x;
	}
}

class Rectangle4 implements Drawable2 {
	public void draw() {
		System.out.println("drawing rectangle");
	}

	static int cube4(int x) {
		return x * x * x;
	}
}

class TestInterfaceStatic {
	public static void main(String args[]) {
		Rectangle4 d = new Rectangle4();
		d.draw();
		System.out.println(Rectangle4.cube4(3));
	}
}
